<template>
    <div class="structure-drawer">
        <template v-for="option of StructureComponent.Default.FilterOptions.value" :key="option.Id">
            <input type="radio" name="结构选项" :id="'结构选项' + option.Id" hidden :value="option.Id"
                v-model="StructureComponent.Default.OptionId.value">
            <label :for="'结构选项' + option.Id">
                <span>{{ option.Type }}</span>
            </label>
        </template>
    </div>
</template>

<script setup lang="ts">
import { StructureComponent } from './InertialNavigationComponent';
</script>

<style scoped>
.structure-drawer {
    position: absolute;
    right: 4rem;
    bottom: 4rem;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 0.1rem;
}

label {
    background-color: #131620;
    width: 10rem;
    height: 7.4rem;

    display: flex;
    justify-content: center;
    align-items: center;
}

label:first-of-type {
    border-radius: 3.7rem 0 0 3.7rem;
}

label:last-of-type {
    border-radius: 0 3.7rem 3.7rem 0;
}

label:only-of-type {
    border-radius: 3.7rem;
}

input:checked+label {
    background: linear-gradient(360deg, #218CDE 0%, #807DE1 100%);
}

label>span {
    color: #A2A2FF;
    font-size: 2.4rem;
    font-weight: 500;
}

input:checked+label>span,
label:hover>span {
    color: white;
}
</style>